<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title>
        <?php wp_title(' &#171;	', true, right); ?>
        <?php bloginfo('name'); ?>:
        <?php bloginfo('description'); ?>
    </title>

    <!-- SITE DESCRIPTIONS -->
    <meta name="description" content="Hasematzel.de ist das private Weblog von Oliver Schwarz, Webdesigner aus dem K&#246;lner Umfeld." />
    <meta name="keywords" content="webdesign, web2.0, ajax, javascript, jquery, playstation3, internet, social software, reviews" />
    <meta name="author" content="Oliver Schwarz" />

    <!-- ADDITIONAL DESCRIPTIONS -->
    <meta name="ICBM" content="51.131734, 7.211865" />
    <meta name="verify-v1" content="kI0PtQS7rDhbxPs/owIuMwgJpXIlyUu0RZkj6eaU58g=" />
    <meta name="robots" content="all, index, follow" />
    <meta http-equiv="imagetoolbar" content="false" />
    <meta name="MSSmartTagsPreventParsing" content="true" />

    <!-- STYLESHEETS -->
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/screen.css" type="text/css" media="screen, projection" />

    <?php wp_head(); ?>

</head>
<body>

<div id="page">

<?php if (is_home()): ?>
    <div id="subscribe">
<?php

$fb = get_option("feedburnersubscribecount");
if ($fb['lastcheck'] < ( mktime() - 600 ) ):

    $url	= "http://api.feedburner.com/awareness/1.0/GetFeedData?uri=hasematzel";
    $ch 	= curl_init();
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_URL, $url);
    $data = curl_exec($ch);
    curl_close($ch);

    if ($data) {
	    preg_match('/circulation=\"([0-9]+)\"/',$data, $matches);
	    if ($matches[1] != 0)
		    $fb['count'] = $matches[1];
	    $fb['lastcheck'] = mktime();
	    update_option("feedburnersubscribecount",$fb);
    }
    
endif;

?>
        <a href="<?php bloginfo('rss_url'); ?>" title="Feed abonnieren">Dieses Blog wird von <?php echo $fb['count']; ?> Menschen gelesen</a>
    </div>
<?php endif; ?>

    <div id="header">
        <div class="column">
            <p class="blogtitle"><a href="<?php bloginfo('home'); ?>" title="<?php bloginfo('name'); ?>"><span><?php bloginfo('name'); ?></span></a></p>
            <h1 class="blogdescription"><?php bloginfo('description'); ?></h1>
        </div><!-- /.column -->
    </div><!-- /#header -->